/**
 * 
 */
package com.manthano.util.event.queue;

import java.io.Serializable;

/**
 * @author Dell
 */
public final class MultiEventObject implements Serializable
{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= 1042585471574839498L;
	private String				eventType			= null;
	private Object				sourceObject		= null;

	/**
	 * @param eventType
	 * @param sourceObject
	 */
	public MultiEventObject(String eventType, Object sourceObject)
	{
		if (null == eventType)
		{
			throw new IllegalArgumentException("Event Type is null");
		}
		if (null == sourceObject)
		{
			throw new IllegalArgumentException("Event Source Object is null");
		}
		this.eventType = eventType;
		this.sourceObject = sourceObject;
	}

	/**
	 * @return the eventType
	 */
	public String getEventType()
	{
		return eventType;
	}

	/**
	 * @param eventType
	 *            the eventType to set
	 */
	public void setEventType(String eventType)
	{
		this.eventType = eventType;
	}

	/**
	 * @return the sourceObject
	 */
	public Object getSourceObject()
	{
		return sourceObject;
	}

	/**
	 * @param sourceObject
	 *            the sourceObject to set
	 */
	public void setSourceObject(Object sourceObject)
	{
		this.sourceObject = sourceObject;
	}

}
